package com.lhgray.sglhome.domain.usecase

import com.freightoa.foundation.net.bean.SGLResponse
import com.freightoa.foundation.presentation.domain.BaseUseCase
import com.lhgray.sglhome.domain.model.TruckingBean
import com.lhgray.sglhome.data.repository.TruckingRepository
import javax.inject.Inject

class TruckingPostUseCase @Inject constructor(private val truckingRepository: TruckingRepository) :
    BaseUseCase() {
    suspend operator fun invoke(fileNo: TruckingBean): Result<SGLResponse<String>> {
        return handleSuccessDataTask(truckingRepository.postTruckingJob(fileNo))
    }
}